<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Coming Eating</title>
<link rel="shortcut icon" href="Tpl/hotel.ico"/>
<!-- href属性中的路径要相对主文件定位，否则会加载不到 -->
<link rel="stylesheet" type="text/css" href="Public/Css/Base.css"/>
<link rel="stylesheet" type="text/css" href="Public/Css/index.css"/>
<link rel="stylesheet" type="text/css" href="Public/Css/position.css"/>
<link rel="stylesheet" type="text/css" href="Public/Css/nav.css"/>

<script type="text/javascript" src="Public/Js/jquery.js"></script>
<script type="text/javascript" src="Public/Js/main.js"></script>
<script type="text/javascript" src="Public/Js/lightbox.min.js"></script>
<script type="text/javascript">
		$(document).ready(function() {
			$('#main_nav').allenMenu();
			$('#slide').allenSlide();
			$('a[name=need_lightbox]').lightBox();
		});
		
		function showCard(cp_id){
			if($("[name='"+cp_id+"']").css("display") == "none"){
				
				$("[name='"+cp_id+"']").show("fast");
			}
			else{
				
				$("[name='"+cp_id+"']").hide("fast");
			}
			
		}
</script>

</head>
<body >

<!-- 这个地方用一个标志  确定是否显示这个 -->
<{if $smarty.session.loginFlag eq 0}>
	
	<{include file='Public/hide.html'}>
<{/if}>

<{include file='Public/indexheader.html'}>

<{include file='Public/search.html'}>
<div id="center" class="clear">
<{include file='Public/position.html'}>
	<div id="left">
		<div class="leftUp">
			<h2>交易记录<span style="float:right;margin-right:10px;margin-top:2px;"><a href="">更多&gt;&gt;</a></span></h2>
			<div class="news">
				<ul>
					<li><img id="newsImg" src="Public/Images/number/1.jpg"/>交易记录1<span class="time">2013-09-09</span></li>
					<li><img id="newsImg" src="Public/Images/number/2.jpg"/>交易记录1<span class="time">2013-09-09</span></li>
					<li><img id="newsImg" src="Public/Images/number/3.jpg"/>交易记录1<span class="time">2013-09-09</span></li>
					<li><img id="newsImg" src="Public/Images/number/4.jpg"/>交易记录1<span class="time">2013-09-09</span></li>
					<li><img id="newsImg" src="Public/Images/number/5.jpg"/>交易记录1<span class="time">2013-09-09</span></li>
					<li><img id="newsImg" src="Public/Images/number/6.jpg"/>交易记录1<span class="time">2013-09-09</span></li>
					<li><img id="newsImg" src="Public/Images/number/7.jpg"/>交易记录1<span class="time">2013-09-09</span></li>
					<li><img id="newsImg" src="Public/Images/number/8.jpg"/>交易记录1<span class="time">2013-09-09</span></li>
				</ul>
			</div>
		</div>
		<div id="GoodOne">
			<h2>热卖推荐<span style="float:right;margin-right:10px;margin-top:2px;"><a href="">更多&gt;&gt;</a></span></h2>
			<div>
			<{*推荐中选取点击数排在前面的四位*}>
			<{foreach from=$goodRes item=goodV}>
				<div id="GoodOneCard">
					<a href='FoodDetail.php?food_id=<{$goodV.food_id}>'><img src='Admin/Upload/<{$goodV.food_pic}>' alt="<{$goodV.food_name}>" title="<{$goodV.food_name}>"/></a>
					<div>商品名：<a href='FoodDetail.php?food_id=<{$goodV.food_id}>'><{$goodV.food_name}></a><br/>
						价&nbsp;&nbsp;格：<{$goodV.food_singleprice}>  	<br/>
						会员价：<{$goodV.food_userprice}>
					</div>
				</div>
			<{/foreach}>		
				

			</div>
		</div>
		<div class="leftRight">
		
			<h2>合作联盟<span style="float:right;margin-right:10px;margin-top:2px;"><a href=""><a href='JoinCp.php?cp_id=1'>更多详情&gt;&gt;</a></a></span></h2>
			<div class="info">
				<ul>
				<{foreach from=$joinData item=v}>
					<li onclick="showCard('<{$v.cp_id}>');"><img  src="Public/images/off.gif" /><{$v.cp_name}></li>
					<div id="infocard"  name="<{$v.cp_id}>">
						<{$v.cp_domain|mb_substr:0:13:'utf-8'}>...<br/>
						公司电话：<{$v.cp_phone}><br/>
						联系人：<{$v.cp_linkman}><br/>
						联系电话：<{$v.cp_linkphone}><br/>
					</div>
				<{foreachelse}>
					<li>暂时没有合作加盟的信息</li>
				<{/foreach}>
				</ul>
			</div>
		</div>
		<div class="leftCenter">
			<{foreach from=$advData item=v}>
				<{if $v.adv_position eq '1' }>
				<a href="<{$v.adv_link}>"><img alt="<{$v.adv_name}>" src="Admin/Upload/adv/<{$v.adv_pic}>" title="<{$v.adv_name}>"/></a>
				<{/if}>
			<{foreachelse}>
				暂时没有此处的广告
			<{/foreach}>
		</div>
	</div>
	<div id="right" class='clear'>
		<!-- 	/* 佳味菜肴start */ -->
		<div class="rtsp clear" >
		<h2>佳味菜肴<span style="float:right;margin-right:10px;font-size:13px;"><a href="MenuList.php">更多&gt;&gt;</a></span></h2>
			<ul>
			<{foreach from=$menuData item=menuv}>
				<li><a href="MenuDetail.php?menu_id=<{$menuv.menu_id}>"><img src="Admin/Upload/<{$menuv.menu_pic}>" alt='<{$menuv.menu_name}>' title='<{$menuv.menu_name}>'/></a><center><a href="MenuDetail.php?menu_id=<{$menuv.menu_id}>"><{$menuv.menu_name}></a></center></li>
			<{foreachelse}>
				<li>暂时没有菜谱的记录信息</li>
			<{/foreach}>
			</ul>
		</div>
		<!-- 	/* 佳味菜肴end */ -->
		
		<!-- 	/* 儿童食品start */ -->
		<div class="rtsp clear">
		<h2>儿童食品 <span style="float:right;margin-right:10px;font-size:13px;"><a href="FoodList.php?flag=3">更多&gt;&gt;</a></span></h2>
			<ul>
				<{foreach from=$chirldRes item=chirldv}>
				<li><a href="FoodDetail.php?food_id=<{$chirldv.food_id}>"><img  src="Admin/Upload/<{$chirldv.food_pic}>" alt="<{$chirldv.food_name}>" title="<{$chirldv.food_name}>"/></a><center><a href="FoodDetail.php?food_id=<{$chirldv.food_id}>"><{$chirldv.food_name}></a></center></li>
				<{foreachelse}>
				<li>暂时没有儿童系列的食品展示</li>
				<{/foreach}>
			</ul>
		</div>
		<!-- 	/* 儿童食品end */ -->
		
		<!-- 	/* 节令食品start */ -->
		<div class="rtsp clear">
		<h2>节令食品 <span style="float:right;margin-right:10px;font-size:13px;"><a href="FoodList.php?flag=1">更多&gt;&gt;</a></span></h2>
			<ul>
				<{foreach from=$dayRes item=dayv}>
				<li><a href="FoodDetail.php?food_id=<{$dayv.food_id}>"><img  src="Admin/Upload/<{$dayv.food_pic}>" alt="<{$dayv.food_name}>" title="<{$dayv.food_name}>"/></a><center><a href="FoodDetail.php?food_id=<{$dayv.food_id}>"><{$dayv.food_name}></a></center></li>
				<{foreachelse}>
				<li>暂时没有节令系列的食品展示</li>
				<{/foreach}>
			</ul>
		</div>
		<!-- 	/* 节令食品end */ -->
		
		
			<!-- 	/* 四季食品start */ -->
		<div class="rtsp clear">
		<h2>四季食品<span style="float:right;margin-right:10px;font-size:13px;"><a href="FoodList.php?flag=2">更多&gt;&gt;</a></span></h2>
			<ul>
				<{foreach from=$seasonRes item=seasonv}>
				<li><a href="FoodDetail.php?food_id=<{$seasonv.food_id}>"><img  src="Admin/Upload/<{$seasonv.food_pic}>" alt="<{$seasonv.food_name}>" title="<{$seasonv.food_name}>"/></a><center><a href="FoodDetail.php?food_id=<{$seasonv.food_id}>"><{$seasonv.food_name}></a></center></li>
				<{foreachelse}>
				<li>暂时没有四季系列的食品展示</li>
				<{/foreach}>
			</ul>
		</div>
		<!-- 	/* 四季食品end */ -->
	</div>

<!-- 	<div style="clear:both;"></div> -->
</div>

<{include file='Public/footer.html'}>
</body>
</html>